package com.itxx.homeWork.test2;

public class Cars extends MotorVehicles implements GpsInter{
    public Cars() {
    }

    public Cars(String name, String price) {
        super(name, price);
    }

    @Override
    public void run() {
        System.out.println(getName()+"可以运行");
    }

    @Override
    public void gps() {
        System.out.println(getName()+"有gps功能");
    }
}
